﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterAdmin.Master" AutoEventWireup="true" CodeBehind="QuanLyDonHang.aspx.cs" Inherits="EC21_EDiamond.Admin.QuanLyDonHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <table style="width: 100%;">
    <tr>
        <td colspan="2" class="text-center" style="font-size: xx-large; color: #000000"><strong>QUẢN LÝ ĐƠN HÀNG</strong></td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">
            <asp:DropDownList ID="drpNgay" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="drpThang" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="drpNam" runat="server">
            </asp:DropDownList>
        </td>
        <td class="text-left">
                <asp:Button ID="btnTimKiemTheoNgay" runat="server" CausesValidation="False" OnClick="btnTimKiemTheoNgay_Click" Text="Tìm Kiếm Theo Ngày" Width="178px" />
        </td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Mã Đơn Hàng:</td>
        <td class="text-left">
            <asp:TextBox ID="txtMaDonHang" runat="server" Width="114px" placeholder="Mã Đơn Hàng"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnTimKiem" runat="server" CausesValidation="False" OnClick="btnTimKiem_Click" Text="Tìm Kiếm Theo Mã" />
        </td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Tài Khoản Người Mua:</td>
        <td class="text-left">
            <asp:Label ID="lblTaiKhoan" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Người Nhận:</td>
        <td class="text-left">
            <asp:Label ID="lblNguoiNhan" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Địa Chỉ Người Nhận:</td>
        <td class="text-left">
            <asp:Label ID="lblDiaChi" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Điện Thoại Người Nhận:</td>
        <td class="text-left">
            <asp:Label ID="lblDienThoai" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Email Người Nhận:</td>
        <td class="text-left">
            <asp:Label ID="lblEmail" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Tổng Tiền:</td>
        <td class="text-left">
            <asp:Label ID="lblTongTien" runat="server" style="color: #FF0000"></asp:Label>
        </td>
    </tr>
        <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Ngày Lập:</td>
        <td class="text-left">
            <asp:Label ID="lblNgayLap" runat="server"></asp:Label>
        </td>
            </tr>
        <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Hình Thức Giao:</td>
        <td class="text-left">
            <asp:Label ID="lblHinhThucGiao" runat="server"></asp:Label>
        </td>
        </tr>
    <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Tình Trạng:</td>
        <td class="text-left">
            <asp:DropDownList ID="drpTinhTrang" runat="server">
                <asp:ListItem Value="0">Chưa Thanh Toán</asp:ListItem>
                <asp:ListItem Value="1">Đã Thanh Toán</asp:ListItem>
                <asp:ListItem Value="2">Hủy Đơn Hàng</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
        <tr>
        <td style="width: 468px; height: 28px; text-align: right;" class="text-right">Công Ty Vận Chuyển:</td>
        <td style="height: 28px" class="text-left">
            <asp:Label ID="lblCongTyVanChuyen" runat="server"></asp:Label>
        </td>
        </tr>
        <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Trạng Thái:</td>
        <td class="text-left">
            <asp:Label ID="lblTrangThai" runat="server"></asp:Label>
        </td>
        </tr>
        <tr>
        <td style="width: 468px; text-align: right;" class="text-right">Ngày Giao:</td>
        <td class="text-left">
            <asp:Label ID="lblNgayGiao" runat="server"></asp:Label>
        </td>
        </tr>
    <tr>
        <td style="width: 468px; height: 48px; text-align: right;" class="text-right">
            <asp:Button ID="btnCapNhat" runat="server" Text="Cập Nhật Đơn Hàng" OnClick="btnCapNhat_Click" Width="147px" />
            </td>
        <td style="height: 48px" class="text-left">
            &nbsp;<asp:Button ID="btnXemChiTiet" runat="server" Text="Xem Chi Tiết Đơn Hàng" OnClick="btnXemChiTiet_Click" Width="166px" />
            &nbsp;
                </td>
    </tr>
    <tr>
        <td style="height: 48px; text-align: center;" class="text-right" colspan="2">
            <asp:GridView ID="grwDonHang" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal" Width="1067px" OnSelectedIndexChanging="grwDonHang_SelectedIndexChanging">
                <Columns>
                    <asp:CommandField SelectText="Chọn" ShowSelectButton="True" />
                    <asp:BoundField DataField="madh" HeaderText="Mã ĐH" />
                    <asp:BoundField DataField="tenkh" HeaderText="Người Nhận" />
                    <asp:BoundField DataField="dienthoai" HeaderText="Điện Thoại" />
                    <asp:BoundField DataField="tongtien" HeaderText="Tổng Tiền" />
                    <asp:BoundField DataField="Ngaylap" HeaderText="Ngày Lập" DataFormatString="{0:d}" />
                    <asp:BoundField DataField="ngaygiao" HeaderText="Ngày Giao" DataFormatString="{0:d}" />
                </Columns>
                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#242121" />
            </asp:GridView>
        </td>
    </tr>
</table>
</asp:Content>
